#include "..\\Includes\\EntityManager.h"


EntityManager::EntityManager()
{
}

void EntityManager::PrintEntities()
{
	Entity insertedEnt;
	insertedEnt.sID = "Inserted at index of 2 (as after entity #3)";
	EntityList.addafter(2, insertedEnt);
	for(int iter = 0; iter < EntityList.count(); iter++)
	{
		std::cout << "Entity " << iter+1 << ": " << EntityList.get(iter).getID() << std::endl;
	}

}

void EntityManager::AcceptEntityEntrance(Entity e)
{
	EntityList.append(e);
	Entity firstEnt;
	firstEnt.sID = "Inserted Ent!";
	EntityList.add_as_first(firstEnt);

}

void EntityManager::AcceptEntityExit(Entity e)
{
	EntityList.del(e);

}